
#ifndef CMACHINE_H_
#define CMACHINE_H_


class CMachine
{
    private:
	    class CState *itsActualState;

    public:
        CMachine();
        virtual ~CMachine();

    public:
        void on();
        void off();

    private:
        friend class CStateOFF;
        friend class CStateON;

        void setActualState(CState *aNewState);
};


#endif /* CMACHINE_H_ */
